package com.atguigu.study.question;

import org.openjdk.jol.info.ClassLayout;

/**
 * @auther zzyybs@126.com
 * @Date 2025-04-27 17:02
 * @Description: TODO
 */

public class PrintObjectHeadDemo
{
    public static void main(String[] args)
    {

        /*Object o = new Object();
        System.out.println( ClassLayout.parseInstance(o).toPrintable());*/

        // 1、创建对象
        Fish fish = new Fish();

        // 2、打印对象结构分析结果
        System.out.println(ClassLayout.parseInstance(fish).toPrintable());

    }
}

class Fish
{
    private int id;
    private String fishName;
    private boolean flag;


}

